﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="School_Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<link type="text/css" rel="stylesheet" href="../Common/css/main.css" />
<script type="text/javascript" src="../Common/js/jquery.js"></script>
<script type="text/javascript" src="../Common/js/common.js"></script>
<%--<script type="text/javascript" src="../Common/js/public.js"></script>--%>
<script type="text/javascript">

function leftNav(url,obj)
{

// for(i=1;i<14;i++)
// {
//    var obj=document.getElementById("item"+i);
//    if(obj!=null)
//     {
//        document.getElementById("item"+i).className="";
//     }
// }
//   document.getElementById("item"+selItemIndex).className="active";
   parent.frames["mainFrame"].location=url;
   
   var lis = document.getElementById('ul').getElementsByTagName('li');
   obj.style.backgroundColor = "#fffccf";
   for(var i=0;i < lis.length;i++)
   {
        if(obj.id != lis[i].id)
            lis[i].style.backgroundColor = "#ffffff";
   }
}

  ///主窗体初始化页面
    function Init()
    {
      var objs = document.getElementById('ul').getElementsByTagName('li');
      if(objs != null && objs.length > 0)
      {
        var obj = objs[0];
        obj.click();
        obj.style.backgroundColor = "#fffccf";
      }
    }
    </script>
</head>
<body onload="Init()"  scroll="no" >

    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        <div class="leftWarp">
	    <div class="menuBody">
	        <div class="menuList" >
	            <h2>报 表 查 询</h2>
	            <dl>
<%--	                <dt>报 表 查 询</dt>--%>
                    <dd id="SubMenu1">
                     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                         <ContentTemplate>
                            <ul id="ul">
                               <asp:Repeater ID="repeatReport" runat="server">
                                    <ItemTemplate>
                                        <li id="<%# Eval("Keyword") %>" onclick="javascript:leftNav('<%# GetHerf((string)Eval("Keyword"))%>',this)">
                                            <a  title="" >
                                                <span >
                                                    <img style="padding-top:5px" src="../Common/images/g1.gif" alt=""/>&nbsp;&nbsp;<%# Eval("ReportName")%>
                                                </span>
                                            </a>
                                        </li>
                                    </ItemTemplate>
                               </asp:Repeater>
                            </ul>    
                        </ContentTemplate>
                      </asp:UpdatePanel>  
                </dd>
             </dl>
	    </div>
    	
    </div>  
</div>
    </form>

</body>
</html>
